[Test]
-Exec=@libexecdir@/installed-tests/gtk+/css/api
+Exec=@libexecdir@/installed-tests/gtk-4.0/css/api
Type=session
subdir('nodes')
subdir('style')
-gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
-testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
-testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css')
-
test_api = executable('api', 'api.c',
install: get_option('install-tests'),
- install_dir: testexecdir,
+ install_dir: join_paths(installed_test_bindir, 'css'),
dependencies: libgtk_dep)
test('css/api', test_api)
configure_file(input: 'api.test.in',
output: 'api.test',
configuration: conf,
- install_dir: testdatadir)
+ install_dir: installed_test_datadir)
endif
-gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
-testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
-testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css/nodes')
-
+testexecdir = join_paths(installed_test_bindir, 'css', 'nodes')
test_nodes = executable('test-css-nodes', 'test-css-nodes.c',
install: get_option('install-tests'),
install_dir: testexecdir,
configure_file(input: 'test-css-nodes.test.in',
output: 'test-css-nodes.test',
configuration: conf,
- install_dir: testdatadir)
+ install_dir: installed_test_datadir)
install_data(test_data, install_dir: testexecdir)
[Test]
-Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk+/css/nodes && @libexecdir@/installed-tests/gtk+/css/nodes/test-css-nodes --tap"
+Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk-4.0/css/nodes && @libexecdir@/installed-tests/gtk-4.0/css/nodes/test-css-nodes --tap"
Type=session
Output=TAP
-gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
-testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
-testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css/parser')
+testexecdir = join_paths(installed_test_bindir, 'css', 'parser')
test_parser = executable('test-css-parser', 'test-css-parser.c',
install: get_option('install-tests'),
configure_file(input: 'test-css-parser.test.in',
output: 'test-css-parser.test',
configuration: conf,
- install_dir: testdatadir)
+ install_dir: installed_test_datadir)
install_data(test_data, install_dir: testexecdir)
[Test]
-Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk+/css/parser && @libexecdir@/installed-tests/gtk+/css/parser/test-css-parser --tap"
+Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk-4.0/css/parser && @libexecdir@/installed-tests/gtk-4.0/css/parser/test-css-parser --tap"
Type=session
Output=TAP
-gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
-testdatadir = join_paths(gtk_datadir, 'installed-tests/gtk4')
-testexecdir = join_paths(gtk_libexecdir, 'installed-tests/gtk4/css/style')
+testexecdir = join_paths(installed_test_bindir, 'css', 'style')
cssresources = gnome.compile_resources(
'cssresources',
configure_file(input: 'test-css-style.test.in',
output: 'test-css-style.test',
configuration: conf,
- install_dir: testdatadir)
+ install_dir: installed_test_datadir)
install_data(test_data, install_dir: testexecdir)
[Test]
-Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk+/css/style && @libexecdir@/installed-tests/gtk+/css/style/test-css-style --tap"
+Exec=/bin/sh -c "cd @libexecdir@/installed-tests/gtk-4.0/css/style && @libexecdir@/installed-tests/gtk-4.0/css/style/test-css-style --tap"
Type=session
Output=TAP
-installed_test_bindir = join_paths(get_option('libexecdir'), 'installed-tests', 'gtk-4.0')
-installed_test_datadir = join_paths(get_option('datadir'), 'installed-tests', 'gtk-4.0')
+gtk_libexecdir = join_paths(gtk_prefix, get_option('libexecdir'))
+installed_test_bindir = join_paths(gtk_libexecdir, 'installed-tests', 'gtk-4.0')
+installed_test_datadir = join_paths(gtk_datadir, 'installed-tests', 'gtk-4.0')
installed_test_env = [
'G_TEST_SRCDIR=@0@'.format(meson.current_source_dir()),